$OpenBSD: patch-config,v 1.10 2015/02/20 08:17:30 dcoppa Exp $
--- config.orig	Thu Jan 15 19:58:20 2015
+++ config	Tue Feb 10 21:14:38 2015
@@ -3,9 +3,9 @@
 # Default installation prefix
-PREFIX=/usr/local
+#PREFIX=/usr/local
 
 # System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
+LUA_LIBDIR?= $(LOCALBASE)/lib/lua/5.1
 
 # Lua includes directory
-LUA_INC= $(PREFIX)/include
+LUA_INC?= $(LOCALBASE)/include
 
@@ -15,9 +15,9 @@
 
-LIBNAME= $T.so.$V
+LIBNAME= $T.so
 
 # Compilation directives
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
+#WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
 INCS= -I$(LUA_INC)
-CFLAGS= $(WARN) $(INCS)
-CC= gcc
+CFLAGS+= -fPIC $(INCS)
+#CC= gcc
 
